package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.utils.PageResult;

import java.util.List;

public interface IBaseService<T> {

    void save(T t);

    void update(T t);

    void delete(Long id);

    T loadById(Long id);

    List<T> loadAll();

    PageResult<T> queryPage(BaseQuery query);

    void patchDelete(Long[] ids);

}
